<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>普通用户信息</title>
    <link rel="stylesheet" type="text/css" href="../../../css/aui/aui.css" />
    <style>
        html,
        body {
            background: #F7F7F7;
        }

        .aui-bar-nav {
            background: #0689FB;
        }

        .list_wrap {
            padding: 0.5rem 0.75rem;
        }

        .row_flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .title {
            line-height: 2.25rem;
        }

        .content {
            color: #2F9AF6;
        }

        .border_b {
            border-bottom: 1px solid #EFEFEF;
        }
    </style>
</head>

<body>
    <div id="app">
        <header class="aui-bar aui-bar-nav" id="header">
            <div class="aui-pull-left aui-btn">
                <span class="aui-iconfont aui-icon-left" onclick="close_w()"></span>
            </div>
            <div class="aui-title">普通用户信息</div>
        </header>

        <div class="list_wrap">
            <div class="row_flex border_b">
                <div class="title">标题描述</div>
                <div class="content">{{info.user_introduction}}</div>
            </div>
            <div class="row_flex border_b">
                <div class="title">所在地</div>
                <div class="content">{{info.region}}</div>
            </div>
            <div class="row_flex border_b">
                <div class="title">姓名</div>
                <div class="content">{{info.user_name}}</div>
            </div>
            <div class="row_flex border_b" v-show="isMobile">
                <div class="title">联系方式</div>
                <div class="content">{{info.user_tel}}</div>
            </div>
        </div>

    </div>



</body>
<script src="../../../script/api.js" charset="utf-8"></script>
<script src="../../../script/common/jquery-3.3.1.min.js" charset="utf-8"></script>
<script src="../../../script/common/common.js" charset="utf-8"></script>
<script src="../../../script/common/config.js" charset="utf-8"></script>
<script src="../../../script/common/vue.min.js" charset="utf-8"></script>
<script>
    apiready = function() {
        api.parseTapmode();
        vm.init();

    }

    var vm = new Vue({
        el: "#app",
        data: {
            info: {},
            isMobile:true,
        },
        methods: {
            init() {
                $api.fixStatusBar(document.querySelector('#header'));
                this.isMobile = api.pageParam.isMobile;
                this.getInfo();
            },
            getInfo() {
                var that = this;
                _ajax(Config.api.UserFoundGetUserBase, {
                    user_id: api.pageParam.id
                }, function(ret) {
                    if (ret.code === 200) {
                        that.info = ret.data;
                    }
                });
            }
        }
    });
</script>

</html>
